const handlePrice = (price, rate) => {
  const pRate = rate / 100;
  const result = price * (1 + pRate);
  const result2 = price * pRate;
  return [result.toFixed(2), result2.toFixed(2)];
};

const [r1, r2] = handlePrice(772.3, 0.0)
console.log("当前价格", r1, "幅度", r2);
